<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="/Public/Admin/Css/public.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
	<table class="table">
		<tr>
			<th>ID</th>
			<th>标题</th>
			<th>所属分类</th>
			<th>发布时间</th>
			<th>操作</th>
		</tr>		
		<?php if(is_array($boke)): foreach($boke as $key=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["title"]); ?>
					<?php if(is_array($v["attr"])): foreach($v["attr"] as $key=>$value): ?><font color="<?php echo ($value["color"]); ?>">[<?php echo ($value["name"]); ?>]</font><?php endforeach; endif; ?>
				</td>
				<td><?php echo ($v["step"]); ?></td>
				<td><?php echo (date('Y-m-d H:i',$v["time"])); ?></td>
				<td>
					<a href="<?php echo U('Home/Bowen/xiugai',array('id'=> $v['id'] ));?>">[修改]</a>
					<a href="<?php echo U('Home/Bowen/readwords',array('pid'=>$v['id']));?>">[查看评论]</a>
					<a href="<?php echo U('Home/Bowen/torecycle',array('id'=> $v['id'] ));?>">[删除到回收站]</a>					
				</td>
			</tr><?php endforeach; endif; ?>				
	</table>
	<div align="center">
	<?php echo ($page); ?>
	<div/>
</body>
</html>